﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CCPnuts.Pack;
using CCPnuts.ISkyDiskFileSystem.Interfaces;

namespace CCPnuts.ISkyDiskFileSystem
{
    public class SkyDisk : SkyElementContainer
    {
        #region Packed Target

        internal SkyDisk(IPacked packed) : base(packed) { }

        internal new I_SkyDisk Packed { get { return (I_SkyDisk)base.Packed; } }

        #endregion

        #region Static Members

        public static SkyDisk Login(string username, string password)
        {
            return (SkyDisk)Util.NNTar(InterfaceManager.SkyDisk.Login(username, password));
        }

        #endregion

        public override SkyElementTypes ElementType
        {
            get { return SkyElementTypes.Disk; }
        }
    }

    public static partial class PackedInfos
    {
        public static PackedInfo SkyDisk { get { return new PackedInfo(p => new SkyDisk(p)); } }
    }
}
